<template>
  <div style="background: #fff">
    <div class="title">
      <div>{{ title }}</div>
    </div>
  
    <el-table
      :data="data"
      stripe
      style="width: 100%; margin-bottom: 1.875rem"
    
    >
      </el-table-column>
      <!-- <el-table-column prop="id" label="id"></el-table-column> -->
      <el-table-column prop="name" label="名称"></el-table-column>
       <el-table-column prop="total_price" label="合计资金"></el-table-column>
       <el-table-column prop="price" label="当前资金"></el-table-column>
          <el-table-column prop="cash_price" label="提现资金"></el-table-column>
       <el-table-column label="操作">
        <!-- <template slot-scope="scope"> -->
            <!-- <el-button size="small" @click="goRoute('/account/index',scope.row.id)" v-if='type==1'>代理商列表</el-button> -->
          <!-- <el-button size="small" @click="goRoute(scope.row.id,'account')" v-if='type==2'>负责人列表</el-button> -->
          <!-- <el-button type="error" size="small" @click="view(scope.row.id)">城市详情</el-button> -->
        <!-- </template> -->
      </el-table-column>
     
    </el-table>
   
  
  </div>
</template>

<script>
import mixin from "../../js/mixin";

export default {
  name: "homePage",
  mixins: [mixin],
  data() {
    return {
      is_page: false,
      api_url: "area",
      item: {},
      status: [],
      query: {},
    };
  },
  components: {},
  mounted() {
    // this.refreshPage()
  },
  created() {
     this.title = '城市列表'
    // this.type = localStorage.getItem('admin_type')
    // if(this.type==1){
    //     this.title = '城市列表'
    // }
    //  if(this.type==2){
    //     this.title = '区县列表'
    // }

    this.init();
  },
  methods: {
    reset() {
      this.query = {};
      this.getData(true);
    },
    init() {
      this.getData();
    },
    goRoute(path, id) {
      console.log(id);
      this.$router.push({ path, query: { id } });
    },
    view(e) {
      console.log(e);
    },
  },
};
</script>

<style scoped>
</style>
